package com.ruoyi.employee.service.impl;

import java.util.List;

import com.ruoyi.employee.domain.vo.EducationExperienceVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.employee.mapper.EducationExperienceMapper;
import com.ruoyi.employee.domain.EducationExperience;
import com.ruoyi.employee.service.IEducationExperienceService;

/**
 * 员工档案Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-30
 */
@Service
public class EducationExperienceServiceImpl implements IEducationExperienceService 
{
    @Autowired
    private EducationExperienceMapper educationExperienceMapper;

    /**
     * 查询员工档案
     * 
     * @param id 员工档案主键
     * @return 员工档案
     */
    @Override
    public EducationExperience selectEducationExperienceById(Long id)
    {
        return educationExperienceMapper.selectEducationExperienceById(id);
    }

    /**
     * 查询员工档案列表
     * 
     * @param educationExperience 员工档案
     * @return 员工档案
     */
    @Override
    public List<EducationExperienceVo> selectEducationExperienceList(EducationExperienceVo educationExperienceVo)
    {
        return educationExperienceMapper.selectEducationExperienceList(educationExperienceVo);
    }

    /**
     * 新增员工档案
     * 
     * @param educationExperience 员工档案
     * @return 结果
     */
    @Override
    public int insertEducationExperience(EducationExperience educationExperience)
    {
        return educationExperienceMapper.insertEducationExperience(educationExperience);
    }

    /**
     * 修改员工档案
     * 
     * @param educationExperience 员工档案
     * @return 结果
     */
    @Override
    public int updateEducationExperience(EducationExperience educationExperience)
    {
        return educationExperienceMapper.updateEducationExperience(educationExperience);
    }

    /**
     * 批量删除员工档案
     * 
     * @param ids 需要删除的员工档案主键
     * @return 结果
     */
    @Override
    public int deleteEducationExperienceByIds(Long[] ids)
    {
        return educationExperienceMapper.deleteEducationExperienceByIds(ids);
    }

    /**
     * 删除员工档案信息
     * 
     * @param id 员工档案主键
     * @return 结果
     */
    @Override
    public int deleteEducationExperienceById(Long id)
    {
        return educationExperienceMapper.deleteEducationExperienceById(id);
    }

    /**
     * 查询所有员工学历的列表
     */
    @Override
    public EducationExperienceVo countEducationExperience() {
        return educationExperienceMapper.countEducationExperience();
    }
}
